From: Florian Müllner Date: Mon, 22 Jan 2024 20:36:29 +0000 (+0100) Subject: Add .editorconfig X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~114 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1965ddc24fd1843b2fe0e3f6cc770d3c60f9cd1c;p=gnome-shell.git Add .editorconfig This should ensure that all editors which support https://editorconfig.org/ use the correct indentation with spaces (not tabs) by default. This is hardly a full specification of our coding style, but it's a correct subset and better than nothing. Part-of: --- diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..600cff8bb --- /dev/null +++ b/.editorconfig @@ -0,0 +1,23 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf + +indent_style = space +trim_trailing_whitespace = true + +[*.js] +indent_size = 4 + +[*.[ch]] +indent_size = 2 + +[*.gresource.xml] +indent_size = 2 + +[*.ui] +indent_size = 2 + +[meson.build] +indent_size = 2